<%-- 
    Document   : MostrarRPorHotel
    Created on : 23-dic-2014, 20:57:10
    Author     : Micaela
--%>

<%@page import="Beans.Reserva"%>
<%@page import="java.util.LinkedList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <style type="text/css">
                    body{
                        background-image: url("http://www.fondox.net/wallpapers/resoluciones/13/ciudad-de-nueva-york_1920x1200_304.jpg");
                        }
                        </style>
    <body>
        <table>
                <tr>
                    <td>IdReserva</td>
                    <td>NumHab</td>
                    <td>IdHotel</td>  
                    <td>Fecha Entrada</td>
                    <td>Fecha Salida</td> 
                    <td>Cantidad de Huespedes</td>
                    <td>Numero de Documento/Pasaporte</td>
                </tr>
                <%
                    LinkedList<Reserva> lista=(LinkedList<Reserva>)request.getAttribute("listaResPorHotel");
                    for(Reserva r:lista){
                        out.println("<tr>");
                        out.println("<TD>"+r.getIdReserva()+"</TD>");
                        out.println("<TD>"+r.getNumHab().getNumero()+"</TD>");
                        out.println("<TD>"+r.getNumHab().getUnHotel().getIdHotel()+"</TD>");
                        out.println("<TD>"+r.getFechaEntrada()+"</TD>");
                        out.println("<TD>"+r.getFechaSalida()+"</TD>");
                        out.println("<TD>"+r.getCantHuespedes()+"</TD>");
                        out.println("<TD>"+r.getNumDoc()+"</TD>");
                        out.println("</tr>");
                    }
                %>
            </table>
    </body>
</html>
